#include "Chat.h"
#include "log.h"
#include <stdlib.h>
#include <signal.h>

#define EXIT_ERROR_PARAMETROS 1

int main(int argc, char *argv[]){

    if(argc < 3) {
	log(stdout, "%s <pid1> <pid2>\n", argv[0]);
	exit(EXIT_ERROR_PARAMETROS);
    }

    int pid1 = atoi(argv[1]);
    int pid2 = atoi(argv[2]);

    char c=0;
    
    while(c != 'q'){
	c = fgetc(stdin);
    }
    
    kill(pid1, SIGUSR1);
    kill(pid2, SIGUSR1);

    return 0;
}
